home *** CD-ROM | disk | FTP | other *** search
- unit ComClass2Impl;
-
- interface
-
- uses
- Windows, ActiveX, Classes, ComObj, BaseLib_TLB;
-
- type
- TComClass2 = class(TComObject, IFoo)
- protected
- {Declare IFoo methods here}
- procedure Bar; safecall;
- end;
-
- const
- Class_ComClass2: TGUID = '{65397276-6BDD-4792-BFB6-00231B79EECC}';
-
- implementation
-
- uses
- ComServ, Dialogs, CommonUnit;
-
- { TComClass2 }
-
- procedure TComClass2.Bar;
- begin
- ShowMessage('Hello from a TComClass2 in ComServer2.dll')
- end;
-
- initialization
- TComObjectFactory.Create(ComServer, TComClass2, SharedClassID,
- 'ComClass2', '', ciInternal, tmApartment);
- end.
-